package com.translate.web.param;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.ISecondaryServiceParam;

public class SecondaryServiceParam<M> extends IdAndUserIdParam implements ISecondaryServiceParam<M> {
	
	@NotNull
	@Size(min=ValidateCondtionAndMessage.MIN_ID, message=ValidateCondtionAndMessage.MIN_ID_MSG)
	private @Valid M[] manuscripts;
	
	@NotNull
	private String requirement;
	
	/**
	 * 服务状态
	 */
	@NotNull
	@Min(value=ValidateCondtionAndMessage.ZERO, message=ValidateCondtionAndMessage.ZERO_MSG)
	@Max(value=2, message="售后服务值最大为2")
	private Byte serviceStatus;
	
	private int orderId;
	
	
	public String getRequirement() {
		return requirement;
	}

	public void setRequirement(String requirement) {
		this.requirement = requirement;
	}

	public M[] getManuscripts() {
        return manuscripts;
    }
	
	public void setManuscripts(M[] manuscripts) {
        this.manuscripts = manuscripts;
    }


	public Byte getServiceStatus() {
		return serviceStatus;
	}

	public void setServiceStatus(Byte serviceStatus) {
		this.serviceStatus = serviceStatus;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
   
}